Name:		@PACKAGE_NAME_LONG_LC@
Version:	@PACKAGE_VERSION@
Release:	1%{?dist}
Summary:	@PACKAGE_DESCRIPTION@

Group:		Applications/Engineering
License:	GPLv3+
URL:		@PACKAGE_URL@
Source0:	https://downloads.sourceforge.net/fast-neurite-tracer/%{name}-%{version}.tar.gz

BuildRequires:	cmake >= 2.6.0
BuildRequires:	gcc-c++
BuildRequires:	zlib-devel
BuildRequires:	libcurl-devel
BuildRequires:	libtiff-devel
BuildRequires:	qt5-qtbase-devel >= 5.4

Requires:	qt5-qtsvg
Requires:	desktop-file-utils

%description
Fast Neurite Tracer (FNT) is a tool for semi-automated neurite tracing.
Through created to handle fMOST data, it should work with other kinds
of light imaging data as well.


%package cli
Summary:	Command line tools for @PACKAGE_NAME_LONG@
Group:		Applications/Engineering

%description cli
This package provides auxiliary command line tools for @PACKAGE_NAME_LONG@.


%prep
%setup -q


%build
mkdir -p build
cd build
%{cmake} -DCMAKE_BUILD_TYPE=Release ..
make %{?_smp_mflags}


%install
cd build
make install DESTDIR=%{buildroot}


%posttrans

%files
%doc README.rst manual/tracer.rst manual/slice2cube.rst
%dir %{_libdir}/@PACKAGE_NAME@-plugins
%{_libdir}/@PACKAGE_NAME@-plugins/@PACKAGE_NAME@-plugin-*.so
%{_bindir}/@PACKAGE_NAME@-tracer
%{_datadir}/pixmaps/@PACKAGE_NAME@-tracer.svg
%{_datadir}/applications/@PACKAGE_NAME@-tracer.desktop

%files cli
%{_bindir}/@PACKAGE_NAME@-dist
%{_bindir}/@PACKAGE_NAME@-from-swc
%{_bindir}/@PACKAGE_NAME@-join
%{_bindir}/@PACKAGE_NAME@-lint
%{_bindir}/@PACKAGE_NAME@-slice2cube
%{_bindir}/@PACKAGE_NAME@-split
%{_bindir}/@PACKAGE_NAME@-to-swc

%changelog
* Fri Feb 10 2017 @PACKAGE_AUTHORS@ - @PACKAGE_VERSION@-1
- bootstrap .spec file


